PROJECT(text-rpg)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

IF(WIN32)
	SET(CMAKE_SYSTEM_NAME Windows)
	SET(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
ENDIF(WIN32)

SET(SOURCES
	src/core.c
	src/game.c
	src/fileio.c)

IF(WIN32)
	ADD_EXECUTABLE(textrpg.exe ${SOURCES})
ELSE(WIN32)
	ADD_EXECUTABLE(textrpg ${SOURCES})
ENDIF(WIN32)

FIND_PACKAGE(PkgConfig)
